package com.dr.springboot.starter.exception;

import lombok.Data;

/**
 * Created by rui on 2018/7/25.
 */
@Data
public class MVCException extends RuntimeException{

    private int code;
    public MVCException(int code){
        this.code=code;
    }

    public MVCException(int code,String message){
        super(message);
        this.code=code;
    }

}
